From: Timm Bäder Date: Wed, 9 Mar 2016 10:15:34 +0000 (+0100) Subject: textview: Ensure the borders fit into the allocation X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~39^2~2587 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=25b67af3;p=gtk%2B3.0.git textview: Ensure the borders fit into the allocation https://bugzilla.gnome.org/show_bug.cgi?id=763216 --- diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 50086ecfd5..346f89488c 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -4003,7 +4003,10 @@ gtk_text_view_size_request (GtkWidget *widget, border_width = gtk_container_get_border_width (GTK_CONTAINER (text_view)); requisition->width += border_width * 2; requisition->height += border_width * 2; - + + requisition->height += priv->top_border + priv->bottom_border; + requisition->width += priv->left_border + priv->right_border; + tmp_list = priv->children; while (tmp_list != NULL) {